/*
 * @Author: your name
 * @Date: 2021-10-14 10:07:18
 * @LastEditTime: 2021-10-18 09:54:53
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \mustache_lk\webpack.config.js
 * npm i -D webpack@4 webpack-cli@3 webpack-dev-server@3
 */
const path = require('path');

module.exports = {
  mode: 'development', // 开发模式
  entry: ['./src/index.js'], // 入口
  output: {
    filename: 'task/bundle.js', // 出口文件
  },
  // weibpack-dev-server 配置
  devServer: {
    contentBase: path.join(__dirname, 'www'), // 静态目录
    compress: false, // 不压缩
    port: 8080,
    open: true,
    publicPath: '/xuni/', // 虚拟打包路径，task/bundle.js没有真正生成
  }
}